import { getToken } from '../utils/token'
import instance from '../utils/request'

function getUserInfo () {
  return instance({
    method: 'get',
    url: '/v1_0/user/profile',
    headers: {
      Authorization: `Bearer ${getToken().token}`
    }
  })
}
export { getUserInfo }
